Repository navigation
Run pipeline: reuse CoderHelm's own PR, stop auto-merge on conflicts, plugin poll, installation owner, close reasons - #347
Merged
Conversation
…branch once A conflicted PR was treated like any other declined merge: the gate polled it every 90 seconds, every completed check suite woke it again, and the status comment was edited each time. A conflict (mergeable_state dirty) now stops the gate in a state no CI event wakes, with one status update. On CoderHelm's own PR the first conflict starts a conflict round on its run (once per PR): the base is merged into the branch and the conflicts resolved in one commit, and the review of that commit re-arms the gate. A conflict it can't resolve is handed to a person with one comment.
… opening another A re-run picked its branch from the team's branch template and PR titles that name the ticket; when neither matched (a retitled ticket, a template without the key) it opened a second and third PR. The run now looks up CoderHelm's own open PR for the ticket from the ticket's earlier runs (every PR each run recorded, in its own repository) and continues on its branch. When the plan moved the change to other repositories, the PRs an earlier run left in repositories it no longer changes are closed with a note naming the new PR.
…nd releasable An installation several teams carry (older sign-ins made a team per person) was routed by the first link time, or by member count for older records: a query per team on every event, and an owner that could move as people joined. The owner is now recorded once (settings: INSTALLATION#<id>/OWNER) and every later event reads it. The other links are stale: the platform admin's Teams overview lists them, the stale team's installation status says so, and a team admin (its own link) or the platform admin (dry run by default) can release them. Releasing never touches the owner's link, and only removes a link while the team still carries that installation.
…er, count the signal When a person closed CoderHelm's PR and nobody said why (no comment on the PR or its issue, no reason in the close dialog), the lesson judge had nothing to read and the close taught nothing. The run now records close_signal closed_no_reason (and the team's prs_closed_no_reason counter), and CoderHelm asks once with one short PR comment. A person's reply on the closed PR goes to the lessons (never the fix loop): it is kept on the run, the signal becomes closed_with_reason, and the judge reads it. A PR CoderHelm closed itself is not asked about.
nambok
force-pushed
the
fix/run-pipeline-audit-2
branch
from
October 28, 2026 02:46
42cf0d2 to
8206949
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Five more fixes from the run-pipeline audit: re-runs that opened a second and third PR for the same ticket, auto-merge polling a conflicted PR, a plugin source poll that failed on every run, one GitHub installation routed among several teams, and PRs closed without a reason that taught nothing. Builds on #346 (merged): its per-PR records and round kinds.
Changes
mergeable_statedirty) puts the gate in a newconflictstate. No CI event wakes it, and it posts one status update instead of polling every 90 seconds and editing the comment each time.Kv::queryon DynamoDB sentbegins_with(sk, ""), which DynamoDB refuses ("empty string value. Key: sk"), so listing a whole index partition failed and no source was polled. An empty prefix now queries the partition without that condition.INSTALLATION#<id>/OWNER), and every later event reads it.shared_installations), and the stale team's installation status says so.POST /api/github/release-stale-link). The platform admin can release all stale links for an installation (POST /api/admin/installations/:id/release-stale); this endpoint is a dry run by default.close_signal = closed_no_reasonand the team'sprs_closed_no_reasoncounter.close_reason_answer, which the next run's history shows the planner), the signal becomesclosed_with_reason, and the lesson judge reads it.Verification
cargo fmt --all --check,cargo clippy --workspace --all-targets -D warningsandcargo test --workspace(common 1250, gateway 605, worker 901, after rebasing on main) pass on this branch.a_rerun_finds_its_own_open_pull_requesta_conflict_stops_the_gate_until_a_new_commit,a_conflict_says_who_resolves_itan_empty_prefix_queries_the_whole_partition_with_no_empty_value,every_source_is_listed_for_the_polla_close_without_a_reason_is_asked_about,only_an_open_question_takes_the_answer,coderhelm_closing_its_own_pr_is_not_asked_aboutpython3 -m unittest discover -s lambda/testspasses. The stuck-run sweep knows the conflict round.